package model.infocenter;

import controller.infocenter.UserInfos;

public class ClientUserInformations implements UserInfos
{
	private String userName;
	private int userId;
	private int curRoomId;
	private static ClientUserInformations instance = null;
	private String ip;
	
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Override
	public String getUserName()
	{
		return userName;
	}

	@Override
	public int getUserId()
	{
		return userId;
	}

	@Override
	public int getCurRoomId()
	{
		return curRoomId;
	}

	@Override
	public void setUserName(String userName)
	{
		this.userName = userName;
	}

	@Override
	public void setUserId(int userId)
	{
		this.userId = userId;
	}

	@Override
	public void setCurRoomId(int roomId)
	{
		curRoomId = roomId;
	}
	
	public static ClientUserInformations getInstance()
	{
		if ( instance == null )
		{
			instance = new ClientUserInformations();
		}
		
		return instance;
	}

}
